# -*- coding: utf-8 -*-
import os
from Qt.QtGui import *

########################################################################################################################
#
# user config variables
#
########################################################################################################################


def documents():
    import ctypes
    from ctypes.wintypes import MAX_PATH
    dll = ctypes.windll.shell32
    buf = ctypes.create_unicode_buffer(MAX_PATH + 1)
    if dll.SHGetSpecialFolderPathW(None, buf, 0x0005, False):
        return buf.value.replace("\\", "/")
    else:
        return os.path.expanduser("~/Documents").replace("\\", "/")


# PATH_SETTINGS_FILE
# This is the path where to find the liber's settings json file
PATH_SETTINGS_FILE = os.path.join(documents(), ".liber", "settings1.json").replace("\\", "/")


# version
VERSION = "3.0.10"


# hook directory
HOOK_DIR = []


# font name
FONT_NAME = "Arial"
BACKGROUND_COLOR = "#3C3F41"
TITLE_COLOR = "rgb(0, 165, 165)"
ACCENT_COLOR = "rgb(0, 175, 175)"


# button icon color
ICON_COLOR = QColor(0, 150, 150)
ICON_HOVER_COLOR = QColor(0, 255, 255)

# commnents color
COMMENTS_COLOR = QColor(255, 255, 0)


# Maya texture type and attribute
TEXTURE_NODE_ATTR_DICT = {"file": "fileTextureName",
                          "RedshiftNormalMap": "tex0",
                          "RedshiftDomeLight": "tex0",
                          "aiImage": "filename",
                          "RedshiftIESLight": "profile",
                          "RedshiftSprite": "tex0"}


COLOR_SPACE_ATTR_DICT = {"file": "cs",
                         "aiImage": "cs"}


# ignore file list
IGNORE_LIST = [".", "Thumbs.db", ".mayaSwatches"]


# dcc extension list
MAYA_EXT = [".ma", ".mb"]
NUKE_EXT = [".nk"]
HOUDINI_EXT = [".hip"]


if __name__ == "__main__":
    print PATH_SETTINGS_FILE
